﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LiveResults.OnlineLib
{
    public class Competition
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public string Organizer { get; set; }
        public DateTime Date { get; set; }

        public override string ToString()
        {
            return Date.ToString("yyyy-MM-dd") + " - " + Name + " (" + Organizer + ")";
        }
    }

    public class ResponseStatus
    {
        public string Status { get; set; }
        public string Message { get; set; }
    }


    public class OnlineClass
    {
        public string ClassName { get; set; }
        public int ClassID { get; set; }
        public IList<RadioControl> Controls { get; set; }
    }

    public class OnlineResult
    {
        public int DbID { get; set; }
        public string ClassName { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string ClubName { get; set; }
        public int TotalTime { get; set; }
        public int StartTime { get; set; }
        public int Status { get; set; }
        public IList<int> SplitControls { get; set; }
        public IList<int> SplitTimes { get; set; }
    }

    public class RadioControl
    {
        public int Code { get; set; }
        public string Name { get; set; }
    }
}
